package com.sdy.healthcode.biz.service;

import com.sdy.healthcode.biz.dto.holiday.HolidayYearDTO;
import com.sdy.healthcode.biz.model.Holiday;
import com.sdy.mvc.service.BaseService;

import java.util.Date;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hyh
 * @since 2020-04-13
 */
public interface HolidayService extends BaseService<Holiday> {
    HolidayYearDTO getHolidaysForYear(Integer year);
    void setHolidays(HolidayYearDTO holidays);
    /**
     * 判断某天是否需要排班
     */
    Boolean checkScheduleStateForDay(Date date);
    /**
     * 判断某天是否需要排班
     */
    Boolean checkScheduleStateForDay(Date date, Integer departmentId);
}
